import request from "../request"
//登录
function doLogin(data){
    return request({
        url:"/be/admin/login",
        method:"post",
        data
    })
}
//退出登陆
function loginout(data){
    return request({
        url:"/be/admin/logout",
        method:"post",
        data
    })
}
//修改密码
function resetPass(data){
    return request({
        url:"/be/admin/reset",
        method:"post",
        data
    })
}

//获取用户菜单
function getMenu(data){
    return request({
        url:"/be/admin/menu",
        method:"post",
        data
    })
}

export default {
    doLogin,
    loginout,
    resetPass,
    getMenu
}